class Computer {
    String brand;
     int cpuHz;//品牌
}
public class SxtStu {
    // field
    int id;
    String sname;
    int age;
    Computer comp;
    void study() {
        System.out.println("我正在学习！使用我的电脑姓名:"+sname+"  品牌："+comp.brand+"  cpu:"+comp.cpuHz);
    }
    SxtStu() {
    }
    public static void main(String[] args) {
        SxtStu s = new SxtStu();
        s.sname = "张三";
        Computer c1 = new Computer();
        c1.brand = "联想";
        c1.cpuHz=4;
        s.comp = c1;
        s.study();
    SxtStu u = new SxtStu();
    u.sname ="司某";
    Computer c2 = new Computer();
    c2.brand = "华硕";
    c2.cpuHz=6;
    u.comp = c2;
    u.study();
    SxtStu o = new SxtStu();
    o.sname ="王某";
    Computer c3 = new Computer();
    c3.brand = "惠普";
    c3.cpuHz=5;
    o.comp = c3;
    o.study();}}